<div class="search-box">
	<form class="search_form layui-form" lay-filter="qingkuan_search_form">
		<div class="layui-inline">
		    <label class="layui-form-label layui-bg-blue">军单号</label>
		    <div class="layui-input-inline">
		        <input type="text" name="out_order_no" autocomplete="off" class="layui-input"
		            onkeyup="this.value=this.value.replace(/[, ]/g,'')">
		    </div>
		</div>
		<div class="layui-inline">
		    <label class="layui-form-label layui-bg-blue">比例</label>
		    <div class="layui-input-inline">
		        <input type="text" name="bili" autocomplete="off" class="layui-input"
		            onkeyup="this.value=this.value.replace(/[, ]/g,'')">
		    </div>
		</div>
		<div class="layui-inline">
		    <label class="layui-form-label layui-bg-blue">供应商</label>
		    <div class="layui-input-inline">
		        <input type="text" name="gongyingshang" autocomplete="off" class="layui-input"
		            onkeyup="this.value=this.value.replace(/[, ]/g,'')">
		    </div>
		</div>
		<div class="layui-inline">
		    <label class="layui-form-label layui-bg-blue">请款状态</label>
		    <div class="layui-input-inline">
		        <select name="pici_state" lay-filter="pici_state" id="pici_state">
		            <option value="">全部</option>
		            <option value="1">已请款</option>
		            <option value="2">未请款</option>
					<option value="3">部分请款</option>
					<option value="4">保金请款</option>
					<option value="5">待重新请款</option>
		        </select>
		    </div>
		</div>
		<div class="layui-inline">
		    <label class="layui-form-label layui-bg-blue">请款批次</label>
		    <div class="layui-input-inline">
		        <input type="text" name="pici" autocomplete="off" class="layui-input"
		            placeholder="开始时间">
		    </div>
			<div class="layui-input-inline">
			    <input type="text" name="pici_end" autocomplete="off" class="layui-input" placeholder="结束时间">
			</div>
		</div>
		<div class="layui-inline">
		    <label class="layui-form-label layui-bg-blue">回款状态</label>
		    <div class="layui-input-inline">
		        <select name="huikuan" lay-filter="huikuan" id="huikuan">
		            <option value="">全部</option>
		            <option value="0">未回款</option>
		            <option value="1">已回款</option>
		        </select>
		    </div>
		</div>
		<div class="layui-inline">
		    <label class="layui-form-label layui-bg-blue">入库状态</label>
		    <div class="layui-input-inline">
		        <select name="ruku" lay-filter="ruku" id="ruku">
		            <option value="">全部</option>
		            <option value="0">未入库</option>
		            <option value="1">已入库</option>
		        </select>
		    </div>
		</div>
		<div class="layui-inline">
		    <label class="layui-form-label layui-bg-blue">状态</label>
		    <div class="layui-input-inline">
		        <select name="zhuangtai" lay-filter="zhuangtai" id="zhuangtai">
		            <option value="">全部</option>
		            <option value="0">一致</option>
		            <option value="1">不一致</option>
		        </select>
		    </div>
		</div>
		<div class="layui-inline">
		    <label class="layui-form-label layui-bg-blue">资质</label>
		    <div class="layui-input-inline">
		        <select name="zizhi" lay-filter="zizhi" id="zizhi">
		            <option value="">全部</option>
		            <option value="0">不全</option>
		            <option value="1">齐全</option>
					<option value="2">完结</option>
		        </select>
		    </div>
		</div>
		
		<div class="layui-inline">
		    <div class="layui-input-inline">
		        <button type="button" id="qingkuan_search_btn"
		            class="layui-btn layui-btn-normal layui-btn-sm layui-bg-red">搜 索</button>
		    </div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<table class="layui-hide" id="qingkuan_list" lay-filter="qingkuan_list"></table>
<script>
	var qingkuan_list_url = "{:url('qingkuan/ajaxList')}";
	var qingkuan_save_url = "{:url('qingkuan/saveData')}";
	var explodeRukuzongbiao_url = "{:url('qingkuan/rukuzongbiao')}";
	var explodeHuikuanbili_url = "{:url('qingkuan/huikuanbili')}";
	var explodeQingkuan_url = "{:url('qingkuan/qiangkuanstate')}";
	var qingkuan_cols = {$cols};
	var view_deff_url = "{:url('qingkuan/deffview')}";
	var export_xsl_url = "{:url('qingkuan/exportXsl')}";
</script>
<script type="text/html" id="qingkuan_tool">
	<div class="layui-btn-group">
	<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="viewDeff" data-title="对比"><i class="layui-icon layui-icon-file"></i></a>
	</div>
</script>
<script type="text/html" id="qingkuanToolbar">
	<div class="layui-btn-container">
		<div class="layui-btn-group">
			<a type="button" data-title="导入入库总表" class="layui-btn layui-btn-warm layui-btn-sm rukuzongbiao"
			 lay-event="rukuzongbiao">导入入库总表</a>
			<a type="button" data-title="导入回款比例" class="layui-btn layui-btn-warm layui-btn-sm huikuanbili"
			 lay-event="huikuanbili">导入回款比例</a>
			<a type="button" data-title="导入请款状态" class="layui-btn layui-btn-warm layui-btn-sm qingkuanstate"
			 lay-event="qingkuanstate">导入请款状态</a>
			<a type="button" data-title="导出本次查询" class="layui-btn layui-btn-sm daochu"
			 lay-event="daochu">导出本次查询</a>
		</div>
	</div>
</script>
<script type="text/html" id="pici_stateTpl">
	{{# if(d.pici_state == 1){}}
		已请款
	{{# } else if (d.pici_state == 2){ }}
		未请款
	{{# } else if (d.pici_state == 3){ }}
		保金请款
	{{# } else if (d.pici_state == 4){ }}
		部分请款
	{{# } else if (d.pici_state == 5){ }}
		待重新请款
	{{# }}}
</script>
<script type="text/html" id="zizhiTpl">
	{{# if(d.zizhi == 1){}}
		<div class="layui-anim circle layui-bg-green" data-title="资质齐全">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
		
	{{# } else if (d.zizhi == 2){ }}
		<div class="layui-anim circle layui-bg-blue" data-title="已完结">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# } else {}}
				<div class="layui-anim circle layui-bg-red" data-title="资质不全">
					<i class="layui-icon layui-icon-radio"></i>
				</div>
	{{# }}}
</script>
<script type="text/html" id="rukuTpl">
	{{# if(d.ruku == 1){}}
		<div class="layui-anim circle layui-bg-green" data-title="已入库">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	
	{{# } else {}}
				<div class="layui-anim circle layui-bg-red" data-title="未入库">
					<i class="layui-icon layui-icon-radio"></i>
				</div>
	{{# }}}
</script>
<script type="text/html" id="huikuanTpl">
	{{# if(d.huikuan == 1){}}
		<div class="layui-anim circle layui-bg-green" data-title="已回款">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	
	{{# } else {}}
				<div class="layui-anim circle layui-bg-red" data-title="未回款">
					<i class="layui-icon layui-icon-radio"></i>
				</div>
	{{# }}}
</script>
<script type="text/html" id="zhuangtaiTpl">
	{{# if(d.zhuangtai == 1){}}
		<div class="layui-anim circle layui-bg-green" data-title="一致">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	
	{{# } else {}}
				<div class="layui-anim circle layui-bg-red" data-title="不一致">
					<i class="layui-icon layui-icon-radio"></i>
				</div>
	{{# }}}
</script>
<script type="text/html" id="kaipiaoTpl">
	{{# if(d.kaipiao == 1){}}
		<div class="layui-anim circle layui-bg-green" data-title="已开票">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	
	{{# } else {}}
				<div class="layui-anim circle layui-bg-red" data-title="未开票">
					<i class="layui-icon layui-icon-radio"></i>
				</div>
	{{# }}}
</script>

<script type="text/html" id="zhifuTpl">
	{{# if(d.zhifu == 1){}}
		<div class="layui-anim circle layui-bg-green" data-title="已支付">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	
	{{# } else {}}
				<div class="layui-anim circle layui-bg-red" data-title="未支付">
					<i class="layui-icon layui-icon-radio"></i>
				</div>
	{{# }}}
</script>

<script src="/static/js/qingkuan/index.js" type="text/javascript" charset="utf-8"></script>

<style>
        .search_form .layui-inline {
            padding-left: 0px;
        }

        .layui-form-label {
            line-height: 25px;
        }

        .search_form .layui-form-label {
            padding: 5px 5px 0 5px;
        }
        .shouhou {position: absolute;float:left; margin:10px 0px 0px -11px !important; width:7px !important;height:7px !important; z-index:20;}
        .shouhou_no {position: absolute;float:left; z-index:10;}
    </style>